package com.nhkj.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nhkj.entities.Emp;
import com.nhkj.service.EmpService;

@Controller
public class EmpColltroller {
	@Autowired
	private EmpService empService;
	
	private int a=10;
	
	@ResponseBody
	@RequestMapping("selectEmpByEmpNameLike")
	public List<Emp> selectEmpByEmpNameLike(String empName){
		
		return this.empService.selectEmpByEmpNameLike(empName);
	}
}
